<%@ Import Namespace="iPhOwa.Exchange" %>
<%@ Control Language="C#" AutoEventWireup="true" Codebehind="CalendarContent.ascx.cs"
	Inherits="iPhOwa.Web.Controls.CalendarContent" %>
<asp:Panel ID="noMessagesPanel" runat="server" Visible="false" Style="text-align: center;">
	You have no upcoming appointments.
</asp:Panel>
<asp:DataList ID="dateList" runat="server" EnableViewState="false" Width="100%" CellPadding="0"
	CellSpacing="0">
	<ItemTemplate>
		<div style="text-align: center; padding-bottom: 5px;">
			<asp:Label runat="server" ID="dateLabel" Font-Bold="true" Text='<%# DateUtility.MakeFriendlyLongDate((DateTime)Eval("Key")) %>' />
		</div>
		<asp:DataList ID="appointmentList" runat="server" EnableViewState="false" Width="100%"
			DataSource='<%# Eval("Value") %>' CellPadding="0" CellSpacing="0">
			<ItemTemplate>
				<iwc:ClickablePanel runat="server" ID="appointmentDiv" Href='<%# string.Concat("ViewAppointment.aspx?path=", HttpUtility.UrlEncode(Eval("Href").ToString())) %>'>
					<div style="padding: 2px;">
						<table cellpadding="0" cellspacing="0">
							<tr>
								<td valign="top">
									<asp:Label runat="server" ID="startLabel" Text='<%# Eval("DisplayStartTime") %>'
										Style="white-space: nowrap;" Font-Bold="true" />
								</td>
								<td style="width: 10px;">
								</td>
								<td>
									<asp:Label runat="server" ID="nameLabel" Text='<%# Eval("NormalizedSubject") %>' />
									<asp:Panel runat="server" ID="locationPanel" Visible='<%# !string.IsNullOrEmpty((string)Eval("Location")) %>'>
										(<asp:Label runat="server" ID="locationLabel" Text='<%# Eval("Location") %>' />)
									</asp:Panel>
								</td>
							</tr>
						</table>
					</div>
				</iwc:ClickablePanel>
				<hr class="divider" />
			</ItemTemplate>
		</asp:DataList>
	</ItemTemplate>
</asp:DataList>